import page
from base.base import Base


class PageBackLogin(Base):
    # 输入后台登录的账号
    def page_input_accounts(self,accounts):
        self.base_in_element_input(page.back_login_accounts,accounts)

    # 输入后台登录的密码
    def page_input_pwd(self,pwd):
        self.base_in_element_input(page.back_login_pwd,pwd)

    # 点击后台登录的登录按钮
    def page_click_login_btn(self):
        self.base_click_element(page.back_login_btn)

    def page_get_screenshot(self):
        self.base_get_img()

    def page_login(self,accounts,pwd):
        self.page_input_accounts(accounts)
        self.page_input_pwd(pwd)
        self.page_click_login_btn()
